// 左侧内容显示区
.left-content {
  background: $base-content-background;
  color: #FFFFFF;
  box-sizing: border-box;
  border-radius: 8px;
  .bold-title {
    font-weight: bold;
  }
  // 文生图编辑区
  .edit-content {
    padding: 18px 12px;
    box-sizing: border-box;
    >span {
      height: 20px;
      line-height: 20px;
    }
    .edit-form-content {
      margin-top: 10px;
      overflow-y: auto;
      .create-num-content {
        align-items: center;
        .create-num-item {
          padding: 5px 10px;
          border-radius: 5px;
          cursor: pointer;
          flex: 1;
          background: #272C36;
          border: 1px solid #39414E;
          color: #686B7A;
          margin-right: 10px;
          text-align: center;
          &.active {
            color: #FFFFFF;
            border: 1px solid #FFFFFF;
          }
        }
      }
      .prompt-content {
        position: relative;
        background: #272C36;
        border: 1px solid #39414E;
        border-radius: 5px;
        ::v-deep {
          textarea {
            border: none;
            resize: none;
          }
        }
        &-full {
          ::v-deep {
            textarea {
              height: calc(100vh - 50px);
            }
          }
        }
        .prompt-toolbar {
          margin-top: 10px;
          padding: 10px;
          box-sizing: border-box;
          >.svg-icon {
            width: 18px;
            height: 18px;
            cursor: pointer;
            margin-right: 8px;
            color: #606372;
          }
        }
        .change-loading {
          position: absolute;
          bottom: 5px;
          right: 5px;
        }
      }
      .roles-tags {
        flex-wrap: wrap;
        margin-top: 10px;
        >span {
          margin-right: 10px;
          margin-bottom: 10px;
          padding: 5px 8px;
          box-sizing: border-box;
          line-height: normal;
          font-size: 12px;
          border-radius: 5px;
          background: #39414E;
          border: 1px solid transparent;
          cursor: pointer;
          color: #999;
        }
      }
      .prompt-language {
        position: absolute;
        top: -30px;
        right: 0;
        width: 18px;
        height: 18px;
        cursor: pointer;
      }
      .prompt-recommend {
        position: absolute;
        right: 25px;
        top: -30px;
        width: 18px;
        height: 18px;
        cursor: pointer;
      }
      .upload-demo {
        width: 100%;
        ::v-deep {
          .el-upload {
            width: 100%;
          }
          .el-upload-dragger {
            background: #272C36 !important;
            border-color: #5C6872;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #B6C7D1;
            padding: 0 10px;
            box-sizing: border-box;
            overflow: hidden;
            height: 80px;
            font-size: 12px;
            >div {
              line-height: 15px;
            }
            >i {
              font-size: 20px;
            }
            em {
              font-style: normal;
              color: $base-color-default;
            }
          }
        }
      }
      .prompt-lens-icon {
        position: absolute;
        top: -30px;
        right: 0;
        width: 18px;
        height: 18px;
        cursor: pointer;
        color: #FFFFFF;
      }
      .prompt-image {
        position: relative;
        width: 90px;
        height: 90px;
        border-radius: 5px;
        overflow: hidden;
        cursor: pointer;
        ::v-deep {
          .el-image {
            width: 100%;
            height: 100%;
          }
        }
        &:hover {
          >.prompt-image-toolbar {
            display: flex;
          }
        }
        .prompt-image-toolbar {
          position: absolute;
          left: 0;
          right: 0;
          top: 50%;
          transform: translateY(-50%);
          background: rgba(18, 20, 24, 0.50);
          align-items: center;
          justify-content: space-between;
          padding: 8px 5px;
          box-sizing: border-box;
          display: none;
          >i {
            font-size: 14px;
            cursor: pointer;
          }
        }
      }
      .prompt-tag {
        .prompt-tag-content {
          margin-top: 10px;
          flex-wrap: wrap;
          background: #272C36;
          padding: 10px;
          box-sizing: border-box;
          border-radius: 5px;
          max-height: 200px;
          overflow-y: auto;
          >span {
            margin-right: 10px;
            margin-bottom: 10px;
            padding: 5px 8px;
            box-sizing: border-box;
            line-height: normal;
            font-size: 12px;
            border-radius: 5px;
            background: #39414E;
            border: 1px solid transparent;
            cursor: pointer;
            color: #999;
            &.active {
              background: #272C36;
              color: #FFFFFF;
              border: 1px solid #FFFFFF;
            }
          }
        }
      }
    }
    .edit-bottom-bar {
      padding-top: 20px;
      padding-bottom: 10px;
      box-sizing: border-box;
      align-items: center;
      justify-content: center;
      height: 40px;
      .svg-icon {
        width: 24px;
        height: 24px;
        cursor: pointer;
      }
    }
  }
  // 生成历史
  .generate-history-content {
    height: calc(100% - 300px);
    padding: 0 18px 18px;
    box-sizing: border-box;
    .history-list {
      height: calc(100% - 20px - 8px);
      overflow-y: auto;
      margin-top: 8px;
    }
    .generate-history {
      align-items: center;
      .generate-history-image {
        flex: 1;
        height: 220px;
        //aspect-ratio: $base-aspect-ratio-1;
        position: relative;
        padding: 3px;
        border-radius: 8px;
        border: 1px solid transparent;
        box-sizing: border-box;
        //&[data-ratio="2"] {
        //  aspect-ratio: $base-aspect-ratio-2;
        //}
        //&[data-ratio="3"] {
        //  aspect-ratio: $base-aspect-ratio-3;
        //}
        //&[data-ratio="4"] {
        //  aspect-ratio: $base-aspect-ratio-4;
        //}
        //&[data-ratio="5"] {
        //  aspect-ratio: $base-aspect-ratio-5;
        //}
        //&[data-ratio="6"] {
        //  aspect-ratio: $base-aspect-ratio-6;
        //}
        //&[data-ratio="7"] {
        //  aspect-ratio: $base-aspect-ratio-7;
        //}
        //&[data-ratio="8"] {
        //  aspect-ratio: $base-aspect-ratio-8;
        //}
        .el-image {
          width: 100%;
          height: 100%;
          border-radius: 8px;
          cursor: pointer;
        }
        .more-button-content {
          position: absolute;
          top: 5px;
          right: 5px;
          z-index: 9;
          .more-button {
            background: rgba(0, 0, 0, 0.5);
            border-radius: 5px;
            padding: 8px 8px;
            cursor: pointer;
            color: #FFFFFF;
            //display: none;
          }
          &:hover .more-button {
            display: block;
          }
        }
      }
      .multiple-history-image {
        height: 120px;
        border-radius: 8px;
        border: 1px solid transparent;
      }
      .active {
        border: 1px solid $base-color-default;
      }
    }
  }
  // 中间图片显示区
  .image-show-content {
    padding: 18px;
    box-sizing: border-box;
    height: 100%;
    .top-image-attribute {
      height: 30px;
      line-height: 30px;
      align-items: center;
      justify-content: flex-end;
      >i {
        padding: 5px;
        border-radius: 5px;
        background: #272C36;
        border: 1px solid #39414E;
        margin-left: 10px;
        cursor: pointer;
      }
    }
    .image-view {
      margin-top: 30px;
      height: calc(100% - 30px - 30px - 220px - 20px);
      overflow: hidden;
      .image-container {
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
        em {
          font-style: normal;
          color: $base-color-default;
          cursor: pointer;
        }
      }
      .center-image {
        position: relative;
        width: auto;
        max-height: 100%;
        padding: 1px;
        box-sizing: border-box;
        aspect-ratio: $base-aspect-ratio-1;
        border: 1px solid transparent;
        border-radius: 8px;
        overflow: hidden;
        margin: 0 auto;
        &[data-ratio="2"] {
          max-width: 100%;
          height: auto;
          aspect-ratio: $base-aspect-ratio-2;
        }
        &[data-ratio="3"] {
          max-width: 100%;
          height: auto;
          aspect-ratio: $base-aspect-ratio-3;
        }
        &[data-ratio="4"] {
          max-height: 100%;
          width: auto;
          aspect-ratio: $base-aspect-ratio-4;
        }
        &[data-ratio="5"] {
          max-height: 100%;
          width: auto;
          aspect-ratio: $base-aspect-ratio-5;
        }
        &[data-ratio="6"] {
          max-height: 100%;
          width: auto;
          aspect-ratio: $base-aspect-ratio-6;
        }
        &[data-ratio="7"] {
          max-height: 100%;
          width: auto;
          aspect-ratio: $base-aspect-ratio-7;
        }
        &[data-ratio="8"] {
          max-height: 100%;
          width: auto;
          aspect-ratio: $base-aspect-ratio-8;
        }
        img {
          width: 100%;
          height: 100%;
        }
        .lens-tag {
          position: absolute;
          //display: none;
          top: 0;
          left: 0;
          background: linear-gradient( 90deg, #3766FF 0%, #04FFE0 100%);
          padding: 5px 8px;
          border-radius: 8px 0 8px 0;
          color: #FFFFFF;
          ::v-deep {
            .el-checkbox__input.is-checked .el-checkbox__inner {
              background: none !important;
              border-color: #FFFFFF !important;
            }
          }
        }
        &.active {
          border-color: $base-color-default;
        }
      }
      .loading-image {
        background: #272C36;
        border-radius: 8px;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        aspect-ratio: $base-aspect-ratio-1;
        margin: 0 auto;
        &[data-ratio="2"] {
          max-width: 100%;
          height: 100%;
          aspect-ratio: $base-aspect-ratio-2;
        }
        &[data-ratio="3"] {
          max-width: 100%;
          height: 100%;
          aspect-ratio: $base-aspect-ratio-3;
        }
        &[data-ratio="4"] {
          max-height: 100%;
          height: 100%;
          aspect-ratio: $base-aspect-ratio-4;
        }
        &[data-ratio="5"] {
          max-height: 100%;
          height: 100%;
          aspect-ratio: $base-aspect-ratio-5;
        }
        &[data-ratio="6"] {
          max-height: 100%;
          height: 100%;
          aspect-ratio: $base-aspect-ratio-6;
        }
        &[data-ratio="7"] {
          max-height: 100%;
          height: 100%;
          aspect-ratio: $base-aspect-ratio-7;
        }
        &[data-ratio="8"] {
          max-height: 100%;
          height: 100%;
          aspect-ratio: $base-aspect-ratio-8;
        }
      }
    }
    .history-content {
      margin-top: 20px;
      align-items: center;
      padding: 10px 0;
      box-sizing: border-box;
      position: relative;
      height: 220px;
      >span {
        display: block;
        height: 20px;
        line-height: 20px;
      }
      .swiper-container {
        margin-top: 30px;
        width: calc(100% - 90px);
        height: calc(100% - 50px);
        padding: 2px 0;
        .swiper-slide {
          position: relative;
          height: auto;
          background: #272C36;
          border: 1px solid transparent;
          cursor: pointer;
          aspect-ratio: $base-aspect-ratio-2;
          border-radius: 8px;
          .swiper-slide-image {
            max-width: 100%;
            max-height: 100%;
            aspect-ratio: $base-aspect-ratio-1;
            &[data-ratio="2"] {
              aspect-ratio: $base-aspect-ratio-2;
            }
            &[data-ratio="3"] {
              aspect-ratio: $base-aspect-ratio-3;
            }
            &[data-ratio="4"] {
              aspect-ratio: $base-aspect-ratio-4;
            }
            &[data-ratio="5"] {
              aspect-ratio: $base-aspect-ratio-5;
            }
            &[data-ratio="6"] {
              aspect-ratio: $base-aspect-ratio-6;
            }
            &[data-ratio="7"] {
              aspect-ratio: $base-aspect-ratio-7;
            }
            &[data-ratio="8"] {
              aspect-ratio: $base-aspect-ratio-8;
            }
            .el-image {
              width: 100%;
              height: 100%;
              border-radius: 8px;
            }
            .tool-bar {
              position: absolute;
              top: 5px;
              right: 5px;
              padding: 8px 10px;
              border-radius: 5px;
              box-sizing: border-box;
              background: rgba(18, 20, 24, 0.50);
              z-index: 9;
              align-items: center;
              font-size: 12px;
              display: none;
              cursor: pointer;
            }
            .current-lens-tag {
              position: absolute;
              //display: none;
              top: 0;
              left: 0;
              background: linear-gradient( 90deg, #3766FF 0%, #04FFE0 100%);
              padding: 5px 8px;
              border-radius: 8px 0 8px 0;
              color: #FFFFFF;
            }
          }
          &.active {
            border: 1px solid $base-color-default;
          }
          &:hover .tool-bar {
            display: flex;
          }
        }
      }
      .pre-button {
        position: absolute;
        cursor: pointer;
        left: 0;
        top: 50px;
        bottom: 0;
        width: 30px;
        background: #272C36;
        border: 1px solid #39414E;
        border-radius: 8px;
      }
      .next-button {
        position: absolute;
        cursor: pointer;
        right: 0;
        top: 50px;
        bottom: 0;
        width: 30px;
        background: #272C36;
        border: 1px solid #39414E;
        border-radius: 8px;
      }
    }
  }
}
// 右侧镜头列表区
.lens-header {
  align-items: center;
  span {
    font-weight: bold;
    margin-left: 10px;
    &:nth-child(2) {
      font-size: 12px;
      background: #272C36;
      border: 1px solid #39414E;
      border-radius: 5px;
      padding: 5px;
      margin-left: 5px;
      transform: scale(0.8);
    }
  }
}
.right-content {
  color: white;
  .lens-info-content {
    position: relative;
    padding: 10px;
    box-sizing: border-box;
    background: #272C36;
    border-radius: 8px;
    color: #B6C7D1;
    font-size: 12px;
    >div {
      line-height: 20px;
    }
    .show-more-button {
      position: absolute;
      background: #39414E;
      cursor: pointer;
      height: 18px;
      width: 48px;
      border-radius: 9px;
      text-align: center;
      bottom: -9px;
      left: 50%;
      transform: translateX(-50%);
      color: #B6C7D1;
    }
  }
  .right-header {
    margin-top: 10px;
    align-items: center;
    >i {
      width: 4px;
      height: 18px;
      border-radius: 4px;
      background: $base-color-default;
    }
    >span {
      margin-left: 10px;
    }
  }
  .lens-frame-item {
    .lens-frame-content {
      position: relative;
      margin-top: 10px;
      align-items: center;
      padding: 10px;
      box-sizing: border-box;
      background: #272C36;
      border: 1px solid #39414E;
      border-radius: 4px;
      cursor: pointer;
      &.active {
        border: 1px solid $base-color-default;
      }
      &:hover {
        .lens-frame-delete {
          display: block;
        }
      }
      .lens-frame-delete {
        position: absolute;
        bottom: 15px;
        right: 12px;
        background: rgba(0, 0, 0, 0.5);
        padding: 5px 6px;
        border-radius: 5px;
        cursor: pointer;
        display: none;
      }
      .lens-frame-left {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: $base-aspect-ratio-2;
        background: #39414E;
        border-radius: 4px;
        .lens-frame-image {
          max-width: 100%;
          max-height: 100%;
          aspect-ratio: $base-aspect-ratio-1;
          &[data-ratio="2"] {
            aspect-ratio: $base-aspect-ratio-2;
          }
          &[data-ratio="3"] {
            aspect-ratio: $base-aspect-ratio-3;
          }
          &[data-ratio="4"] {
            aspect-ratio: $base-aspect-ratio-4;
          }
          &[data-ratio="5"] {
            aspect-ratio: $base-aspect-ratio-5;
          }
          &[data-ratio="6"] {
            aspect-ratio: $base-aspect-ratio-6;
          }
          &[data-ratio="7"] {
            aspect-ratio: $base-aspect-ratio-7;
          }
          &[data-ratio="8"] {
            aspect-ratio: $base-aspect-ratio-8;
          }
          >span {
            position: absolute;
            background: rgba(0, 0, 0, 0.5);
            padding: 5px;
            border-radius: 5px;
            &:nth-child(3) {
              bottom: 5px;
              left: 5px;
              display: none;
            }
            &:nth-child(4) {
              bottom: 5px;
              left: 35px;
              display: none;
            }
          }
          .lens-no {
            top: 5px;
            left: 5px;
            //padding: 0;
            background: #FFFFFF;
            //width: 22px;
            //height: 22px;
            //line-height: 22px;
            padding: 3px;
            min-width: 16px;
            border-radius: 5px;
            box-sizing: border-box;
            text-align: center;
            font-size: 12px;
            color: #333333;
          }
        }
        &:hover {
          .lens-frame-image {
            .up-icon, .down-icon {
              display: flex;
            }
          }
        }
        .el-image {
          width: 100%;
          height: 100%;
          border-radius: 4px;
        }
      }
      .lens-frame-prompt {
        flex: 1;
        color: #B6C7D1;
        font-size: 12px;
        margin-left: 10px;
      }
    }
  }
  .add-lens {
    background: #272C36;
    border: 1px solid #39414E;
    border-radius: 4px;
    box-sizing: border-box;
    height: 36px;
    line-height: 36px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    cursor: pointer;
    color: #B6C7D1;
    span {
      margin-left: 10px;
    }
  }
}
::v-deep {
  .el-slider__runway {
    margin-left: 10px;
  }
  .seed-input {
    width: 200px;
  }
  .picture-scale-placeholder {
    width: 20px;
    height: 10px;
    .picture-scale-tag {
      //background: #686B7A;
      border: 1px solid #FFFFFF;
      border-radius: 2px;
      margin: 0 auto;
      max-width: 100%;
      max-height: 100%;
      aspect-ratio: $base-aspect-ratio-1;
      &[data-ratio="2"] {
        aspect-ratio: $base-aspect-ratio-2;
      }
      &[data-ratio="3"] {
        aspect-ratio: $base-aspect-ratio-3;
      }
      &[data-ratio="4"] {
        aspect-ratio: $base-aspect-ratio-4;
      }
      &[data-ratio="5"] {
        aspect-ratio: $base-aspect-ratio-5;
      }
      &[data-ratio="6"] {
        aspect-ratio: $base-aspect-ratio-6;
      }
      &[data-ratio="7"] {
        aspect-ratio: $base-aspect-ratio-7;
      }
      &[data-ratio="8"] {
        aspect-ratio: $base-aspect-ratio-8;
      }
    }
  }
  .link-icon {
    margin: 0 10px;
    cursor: pointer;
  }
}
